import service from '@/utils/request'

export const taskOpen = (name: string) => {
  return service({
    url: '/task/open',
    method: 'get',
    params: { name }
  })
}

export const taskClose = (name: string) => {
  return service({
    url: '/task/close',
    method: 'get',
    params: { name }
  })
}

export const taskList = () => {
  return service({
    url: '/task/list',
    method: 'get'
  })
}

export const taskOpenedList = () => {
  return service({
    url: '/task/openedList',
    method: 'get'
  })
}
